package com.wen.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author ~(≧▽≦)/~ 南瓜
 * @version V1.0
 * @Title: 标题
 * @Package com.wen.controller
 * @Description: 模块说明
 * @date 2018-04-18 16:48
 * @Signature 怒发冲冠，凭阑处、潇潇雨歇。抬望眼、仰天长啸，壮怀激烈。三十功名尘与土，八千里路云和月。莫等闲，白了少年头，空悲切。
 * 靖康耻，犹未雪；臣子恨，何时灭。驾长车，踏破贺兰山缺。壮志饥餐胡虏肉，笑谈渴饮匈奴血。待从头、收拾旧山河，朝天阙。
 */
@Controller
@RequestMapping("validate")
public class JqValidationController {

    @RequestMapping("index")
    public String index() {
        return "jq_validation/index";
    }

    @ResponseBody
    @RequestMapping("checkName")
    public boolean checkName(String txtName) {
        if (txtName.equals("666")) {
            return false;
        } else {
            return true;
        }
    }
}
